<?php
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?:'main';
if($_RQ['op']=='main'){
	//这里整理跳转到游戏页面
	$id=intval($_RQ['id']);
	$wait=$this->pdo_get('game_wait',array('id'=>$id));
	$wait['game_id']=pdo_getcolumn('jy_weishop_game',array('id'=>$wait['game_id']),'game_id');
	$backurl=($_SESSION['current_plugin'] && $_SESSION['current_plugin']!='core')?$_SESSION['current_plugin']:'jy_weishop';
	if(!$wait['game_id']){
		exi('没找到该游戏活动！','error',$backurl.'/index/');
	}
	//接下来跳转到游戏首页
	exi('','',custom_url('jy_h5game/welcome/reply/wait_id='.$wait['id'].'&backurl='.$backurl,true));
}